﻿using System.Data;
using Migrator.Framework;

namespace ScrumBox.Database.Migrations
{
    [Migration(2)]
    public class AddKeyStartDateToProject : Migration
    {
        public override void Up()
        {
            Database.AddColumn("Projects", new Column("ProjectKey", DbType.String, ColumnProperty.Unique));
            Database.AddColumn("Projects", new Column("StartDate", DbType.DateTime));
        }

        public override void Down()
        {
            Database.RemoveColumn("Projects", "ProjectKey");
            Database.RemoveColumn("Projects", "StartDate");
        }
    }
}